#marvin
paranoid_android = "Marvin"
letters = list(paranoid_android)
for char in letters:
    print('/t', char)

paranoid_android = "Marvin, the Paranoid Android"
letters = list(paranoid_android)
for char in letters[:6]:
    print('/t',char)
print()
for char in letters[-7:]:
    print('/t'*2, char)
print()
for char in letters[12:20]:
    print('/t'*3, char)

#panic
phrase = "Don't panic!"
plist = list(phrase)
print(phrase)
print(list)

for i in range(4):
    plist.pop()
plist.pop(0)
plist.remove("'")

plist.extend([plist.pop(), plist.pop()])
plist.insert(2, plist.pop(3))

new_phrase = ''.join(plist)
print(plist)
print(new_phrase)

phrase = "Don't panic!"
plist = list(phrase)
print(phrase)
print(plist)

new_phrase = ''.join(plist[1:3])
new_phrase = ''.join([new_phrase, plist[5], plist[4], plist[7], plist[6]])

print(plist)
print(new_phrase)

phrase = "Don't panic!"
plist = list(phrase)
print(phrase)
print(plist)

new_phrase = ''.join(plist[1:3]) + ''.join([plist[5], plist[4], plist[7], plist[6]])

print(plist)
print(new_phrase)

#vowels
vowels = ['a', 'e', 'i', 'o', 'u']
word = "Milliways"
found = []
for letter in word:
    if letter in vowels:
        if letter not in found:
            found.append(letter)
for vowel in found:
    print(vowel)

vowels = ['a', 'e', 'i', 'o', 'u']
word = input("Provide a word to searc for vowels: ")
found = []
for letter in word:
    if letter in vowels:
        if letter not in found:
            found.append(letter)
for vowel in found:
    print(vowel)